package com.liangsui.mss.aspectj;

import com.liangsui.mss.aspectj.enums.BusinessType;
import com.liangsui.mss.aspectj.enums.OperatorType;

import java.lang.annotation.*;

/**
 * aspectj
 *
 * @author zhangjiawei
 * @email 1533167396@qq.com
 * @date 2022/12/5 15:07
 */
@Target({ElementType.PARAMETER, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Log {
    /**
     * 模块
     */
    public String title() default "";

    /**
     * 功能
     */
    public BusinessType businessType() default BusinessType.OTHER;

    /**
     * 操作人类别
     */
    public OperatorType operatorType() default OperatorType.MANAGE;

    /**
     * 是否保存请求的参数
     */
    public boolean isSaveRequestData() default true;
}
